package com.scau402.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.scau402.common.annotation.Excel;
import com.scau402.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 翡翠品类对象 wms_jade_type
 * 
 * @author ruoyi
 * @date 2023-06-26
 */
public class WmsJadeType extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    private List<WmsJadeType> children;

    /** id */
    private Long id;

    /** 父翡翠品类id */
    @Excel(name = "父翡翠品类id")
    private Long parentId;

    /** 翡翠品类编码 */
    @Excel(name = "翡翠品类编码")
    private String jadeTypeCode;

    /** 翡翠品类名称 */
    @Excel(name = "翡翠品类名称")
    private String jadeTypeName;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long orderNum;

    /** 状态（0启用 1停用） */
    @Excel(name = "状态", readConverterExp = "0=启用,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 租户ID */
    @Excel(name = "租户ID")
    private Long tenantId;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setJadeTypeCode(String jadeTypeCode) 
    {
        this.jadeTypeCode = jadeTypeCode;
    }

    public String getJadeTypeCode() 
    {
        return jadeTypeCode;
    }
    public void setJadeTypeName(String jadeTypeName) 
    {
        this.jadeTypeName = jadeTypeName;
    }

    public String getJadeTypeName() 
    {
        return jadeTypeName;
    }
    public void setOrderNum(Long orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Long getOrderNum() 
    {
        return orderNum;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public List<WmsJadeType> getChildren() {
        return children;
    }

    public void setChildren(List<WmsJadeType> children) {
        this.children = children;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("jadeTypeCode", getJadeTypeCode())
            .append("jadeTypeName", getJadeTypeName())
            .append("orderNum", getOrderNum())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("remark", getRemark())
            .append("tenantId", getTenantId())
            .append("deptId", getDeptId())
            .toString();
    }
}
